<!-- 没有使用mixin的组件02 -->
<template>
  <div>
    <router-link to="/">
      <button>返回Home</button>
    </router-link>
    <button @click="showModal">打开弹窗</button>
    <p v-if="isShowModal">我被打开了！</p>
  </div>
</template>
<script>
export default {
  name: "NoMixin02",
  data () {
    return {
      isShowModal: false
    };
  },
  methods: {
    showModal() {
      this.isShowModal = true;
    }
  }
}
</script>